package com.serene.authority.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.serene.authority.admin.entity.MyRoleMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author serene
 * @createTime 2020/7/10
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<MyRoleMenu> {

    /**
     * 新建角色与menu的联系
     *
     * @param roleId  角色id
     * @param menuIds 菜单id
     */
    public void save(@Param("roleId") Integer roleId, @Param("menuIds") List<Integer> menuIds);

}
